<template>
	<div class="header">
		<div class="header-left">
			<div class="iconfont back-icon">&#xe624;</div>
		</div>
		
		<div class="header-input">
			<span class="iconfont">&#xe632;</span>
			输入城市景点游玩主题
		</div>
		<!-- 使用router-link标签路由跳转 -->
		<router-link to="/city">
		<div class="header-right">{{this.city}}
		<span class="iconfont arrow-icon">&#xe64a;</span>
		</div>
		</router-link>
	</div>
</template>

<script>
	export default {
		name: 'HomeHeader',
		props:{
			city:String
		},
		data() {
			return {
				msg: ''
			}
		}
	}
</script>

<style lang="stylus" scoped>
	/* ~@表示src目录
	@别名配置在build目录下的webpack.base.conf.js中
   别名配置好了之后，就可以使用~style 代替 ~@/assets/styles 	
   resolve: {
	   extensions: ['.js', '.vue', '.json'],
	   alias: {
	    'vue$': 'vue/dist/vue.esm.js',
	     '@': resolve('src'),
	     我们可以自定义别名 ,配置完别名之后需要重启项目，才能生效，否则报错
		     'styles': resolve('src/assets/styles')
	   }
	 } */
	 
	  
	@import '~@/assets/styles/varibles.styl'
	.header 
		/* display: flex; */
		height: 3.4375rem;
		/* border: 1px solid #000000; */
		background: $bgColor;
		line-height: 3.4375rem;
		color: #fff;
	

	.header-left 
		height: 3.4375rem;
		width: 3.125rem;
		float: left;
		/* border: 1px solid #000000; */
	   .back-icon 
		  text-align: center;
		  font-size: 1.25rem;
	

	.header-input
		height: 2.5rem;
		/* //  flex: 1; */
		/* border: 1px solid #000000; */
		width: 15.125rem;
		float: left;
		background: #fff;
		border-radius: 0.625rem;
		margin-top: 0.46875rem;
		/* margin-left: 1px; */
		/* margin-bottom: 5px; */
		color: #ccc;
		line-height: 2.5rem;
		padding-left: 0.3125rem;
	

	.header-right 
		width: 4.6875rem;
		height: 3.4375rem;
		float: right;
		/* border: 1px solid #000000; */
		text-align: center;
		font-size: 1.25rem;	
		color:#fff;
	    .arrow-icon
		  margin-left: -5px;
		  font-size: 0.5rem;
	
</style>
